package com.itheima.test1;

public class Test2 {
    public static void main(String[] args) {
//        生产者和消费者案例4
        //需要判断总数的是厨师
        //吃货看厨师信号
        Desk desk = new Desk();
        Cooker c=new Cooker(desk);
        Eater e=new Eater(desk);
        c.start();
        e.start();
    }
}
